package com.skyolder.milkbee.dto;

import java.util.ArrayList;

import com.skyolder.milkbee.domain.Category;

public class CategoryTreeItem {
	private  Category node;
	private ArrayList<CategoryTreeItem> children;
	private Boolean leaf;
	public Category getNode() {
		return node;
	}
	public void setNode(Category node) {
		this.node = node;
	}
	public ArrayList<CategoryTreeItem> getChildren() {
		return children;
	}
	public void setChildren(ArrayList<CategoryTreeItem> children) {
		this.children = children;
	}
	public void addChild(CategoryTreeItem child){
		if(children==null){
			children=new ArrayList<CategoryTreeItem>();
		}
		children.add(child);
	}
	public Boolean getLeaf() {
		return leaf;
	}
	public void setLeaf(Boolean leaf) {
		this.leaf = leaf;
	}
}
